package com.kuke.kukeuser.remote;

import com.kuke.kukecommon.entity.Result;
import com.kuke.kukecommon.enums.ResultEnum;
import com.kuke.kukeproduct.dto.ProductDTO;
import org.springframework.stereotype.Component;

@Component
public class ProductControllerFallback  implements ProductControllerRemote {

    @Override
    public Result add(ProductDTO productDto) {
        return Result.error(ResultEnum.SERVICE_ERROE);
    }

    @Override
    public Result delete(Long id) {
        return Result.error(ResultEnum.SERVICE_ERROE);
    }

    @Override
    public Result update(Long id, ProductDTO productDTO) {
        return Result.error(ResultEnum.SERVICE_ERROE);
    }

    @Override
    public Result get(Long id) {
        return Result.error(ResultEnum.SERVICE_ERROE);
    }

    @Override
    public Result query(String name) {
        return Result.error(ResultEnum.SERVICE_ERROE);
    }


}
